package tedu.api.binary;

public class Demo07 {
    public static void main(String[] args) {
        int n = 0x5d78ce2d;
        int m = 0xff;
        int k = n & m;
        System.out.println(Integer.toBinaryString(n));
        System.out.println(Integer.toBinaryString(m));
        System.out.println(Integer.toBinaryString(k));
        System.out.println(n % 8);
        System.out.println(n & 0x7);
        System.out.println("------"+0x7);
        System.out.println(n % 16);
        System.out.println(n & 0xf);
    }
}
